#!/bin/bash

#wofi --show run --allow-images --hide-scroll --insensitive --width 500 --height 300 --lines 20 --columns 1

source "$HOME"/.cache/wal/colors.sh

get-color () {
    sed s/\#//g <(echo "${1}ff")    
}

fuzzel --border-radius=5 \
--font="$(gsettings get org.gnome.desktop.interface font-name | tr -d \')" \
--icon-theme="$(gsettings get org.gnome.desktop.interface icon-theme | tr -d \')" \
--background-color="$(get-color "${background}")" \
--text-color="$(get-color "${foreground}")" \
--match-color="$(get-color "${color1}")" \
--selection-color="$(get-color "${color3}")" \
--selection-text="$(get-color "${color4}")" \
--border-color="$(get-color "${color8}")" "$*"
